package com.crawler.search.index.service;


import com.crawler.search.index.suffix.Suffixer;

/**
 *
 * ES索引库操作接口
 * @Class Name ESIndexSaver
 * @author zhangyonghui
 * @Create In 下午3:50:26
 */
public interface ESIndexSaver {


	/**
	 * 创建索引
	 * @param index
	 * @param mapping
	 * @param suffixer
	 * @return
	 */
    public boolean createIndex(String index, String mapping,Suffixer suffixer) ;

    /**
     * 删除索引
     * @param index 索引名称
     * @return
     */
    public boolean deleteIndex(String index) ;

    /**
     * 更新索引
     * @param index
     * @param mapping
     * @return
     */
    public boolean updateIndex(String index, String mapping) ;



}
